package com.example.ConnES;

import com.google.gson.Gson;

public class parseJson {

    public void testGson(){
        Cipher cp=new Cipher();
        Gson gson=new Gson();
        //序列化
        String json = gson.toJson(cp);
        //反序列化
        Cipher cipher = gson.fromJson(json, Cipher.class);
    }

}
